package com.geeguo.ebuilder.operation.business.system.rolewebmodule.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.geeguo.ebuilder.operation.business.system.rolewebmodule.model.RoleWebModuleEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RoleWebModuleMapper extends BaseMapper<RoleWebModuleEntity> {

    List<String> listModuleIdByRole(@Param("roleId") String roleId);

    List<String> listModuleIdByUser(@Param("userId") String userId);

    Integer removeByRole(@Param("roleId") String roleId);

    boolean removeModules(@Param("roleId") String roleId, @Param("moduleIds") List<String> moduleIds);
}